# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-filetype
pkgver=1.0.10
pkgrel=0
pkgdesc="infer file type and MIME from any file/buffer"
url="https://github.com/h2non/filetype.py"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/h2non/filetype.py/archive/v$pkgver.tar.gz"
builddir="$srcdir/filetype.py-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m unittest discover
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/examples
}

sha512sums="
0b779f1ca1367626a57bbae531d9152abdc818d322ae5580809cd83344626c8bb43e10b609aa0709f8a03656c262bfceb8e4a6092bee45c49df0c274fb1ee0ed  py3-filetype-1.0.10.tar.gz
"
